package com.company.cloud.tenant;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import com.company.cloud.common.utils.MainUtils;
import com.company.common.api.wrap.annotation.EnableApiWrap;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EnableHystrix
@EnableFeignClients(basePackages = { "com.company.cloud" })
@SpringBootApplication
@MapperScan(value = "com.company.**.**.modules.**.mapper")
@ComponentScan(basePackages = { "com.company" })
@EnableMethodCache(basePackages = "com.company.cloud")
@EnableCreateCacheAnnotation
@EnableApiWrap
public class TanantApplication {

    public static void main(String[] args) {
        SpringApplication.run(TanantApplication.class, MainUtils.args(args));
    }

}
